import request from '@/utils/request'

/** 查询test列表 */
export function listTestApi(query) {
    return request({
        url: '/bidding/test/list',
        method: 'get',
        params: query
    })
}

/** 查询test选择框列表 */
export function optionTestApi() {
    return request({
        url: '/bidding/test/option',
        method: 'get'
    })
}

/** 查询test详细 */
export function getTestApi(id) {
    return request({
        url: '/bidding/test/' + id,
        method: 'get'
    })
}

/** 新增test */
export function addTestApi(data) {
    return request({
        url: '/bidding/test',
        method: 'post',
        data: data
    })
}

/** 修改test */
export function editTestApi(data) {
    return request({
        url: '/bidding/test',
        method: 'put',
        data: data
    })
}

/** 修改test状态 */
export function editStatusTestApi(id, status) {
    return request({
        url: '/bidding/test/status',
        method: 'put',
        data: {id: id, status: status}
    })
}

/** 删除test */
export function delTestApi(ids) {
    return request({
        url: '/bidding/test/batch/' + ids,
        method: 'delete'
    })
}

